package com.example.order.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.math.BigDecimal;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 订单明细表
 * </p>
 *
 * @author sjz
 * @since 2024-07-08
 */
@Getter
@Setter
@TableName("order_detail")
@Schema(name = "OrderDetail对象", description = "订单明细表")
public class OrderDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键")
    @TableId("id")
    private String id;

    @Schema(description = "名字")
    @TableField("name")
    private String name;

    @Schema(description = "图片")
    @TableField("image")
    private String image;

    @Schema(description = "订单id")
    @TableField("order_id")
    private String orderId;

    @Schema(description = "菜品id")
    @TableField("dish_id")
    private String dishId;

    @Schema(description = "套餐id")
    @TableField("setmeal_id")
    private String setmealId;

    @Schema(description = "口味")
    @TableField("dish_flavor")
    private String dishFlavor;

    @Schema(description = "数量")
    @TableField("number")
    private Integer number;

    @Schema(description = "金额")
    @TableField("amount")
    private BigDecimal amount;
}
